-
Notifications
You must be signed in to change notification settings - Fork 116
show in red incorrect properties in settings.ini #3661
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
144dd89 to
00edc45
Compare
|
Don't know what I've done in my PR but some code is missing. I'm gonna check tomorrow |
|
Even if there is some code missing, the code in this PR should work. I think your classpath is empty, because you use another method to load the jars. |
|
Are you launching Phoebus with a |
Yes we put the lib path in the -classpath whereas the .sh or .bat to launch Phoebus with the official version uses the product-*.jar and the classpath in the manifest |
|
@georgweiss is this new code ok ? Does it work for you ? |
|
@lcaouen, sorry for delayed feed-back. When running in my IDE (IntelliJ) I get the following:
When running Phoebus from a build I get the following:
Here I find for instance Moreover, settings like
|
|
No problem, thanks for your feedback. I get the same problem with intellij on my computer, I'm gonna check what's the problem. I'm surprised by the fact you get an extra key as I think I haven't modify the part of the code which loads the settings.ini. Concerning org.phoebus.framework.workbench/external_app_json, if there is no .properties, what do you think about ignoring key with /external_app in the name ? |
|
@lcaouen, I have uploaded builds to https://drive.google.com/drive/folders/10ERyQAEioZCjrJpj2OVljKSzTI3e7PfO?usp=drive_link. They were built this morning, so latest and greatest on the master branch. There you will also find my settings file (phoebus.ini). As for Regarding external apps configurations, I think they should be excluded from the cheks. |
|
Thanks. Now I'm gonna have a look to the snap_widgets and alarm/server keys |
|
I have checked your settings.ini and the reason why the org.phoebus.applications.alarms/server is in red is because there is an error in your key name. For the other keys in red, I cannot find them so I suppose it is some "secret" keys which are not in the properties files.
Concerning the snap_widgets, I cannot reproduce it. |
|
Thanks @lcaouen for finding the errors I should have been able to spot myself. The Sadly I still see two issues:
|
|
@lcaouen, it would also be a good idea to replace all |
|
No problem, I'm gonna use the standard logger and add a way to exclude custom packages and keys. Could you tell me what you mean by "When running from a build" ? Which command line ? Which arguments and how do you give the settings.ini ? |
|
Using the default way of building Phoebus into a tar ball or zip will create a single jar file (e.g. |
|
No, we do not use the bundled shell script A few more JVM options are added, but that does not affect classpath. |
|
@georgweiss I have pushed all the corrections. |









Shows in the About dialog box the incorrect settings from settings.ini.
It compares the settings from the settings.ini to the settings from the preferences.properties
The incorrect ones are displayed in red
This is related to this issue :
#3605
Testing:
Documentation: